package com.ruoyi.tzzl.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * 会员等级管理对象 wz_members_level
 * @author by caoyong
 * @date 2022/11/7
 **/
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("wz_members_level")
public class WzMembersLevel {
    private static final long serialVersionUID = 1L;

    /** id */
    @TableId(value = "id", type = IdType.AUTO) //id自动递增
    private Long id;

    /** (0-默认会员 1-试用会员 2-付费会员) */
    @Excel(name = "(0-默认会员 1-试用会员 2-付费会员)")
    private String membersLevel;

    /** 等级名称 */
    @Excel(name = "等级名称")
    private String levelName;

    /** 红娘约见折扣 */
    @Excel(name = "红娘约见折扣")
    private Integer discount;

    /** 会员卡封面图url */
    @Excel(name = "会员卡封面图url")
    private String membershipCardUrl;

    /** 是否开启试用会员(1-是 2-否) */
    @Excel(name = "是否开启试用会员(1-是 2-否)")
    private String membersTryout;

    /** 试用天数 */
    @Excel(name = "试用天数")
    private Long tryoutNumber;

    /** 会员是否购买(1-是 2-否) */
    @Excel(name = "会员是否购买(1-是 2-否)")
    private String membersBuy;

    /** 购买价格(友币) */
    @Excel(name = "购买价格(友币)")
    private Integer buyPrice;

    /** 会员规格 */
    @Excel(name = "会员规格")
    private String membersSpecifications;

    /** 创建时间 */
    @Excel(name = "创建时间" , width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /** 变动时间 */
    @Excel(name = "变动时间" , width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    /** 删除标志（0代表存在 2代表删除） */
    @TableLogic
    private String delFlag;
}
